<template>
  <div>
    <div class="box">
      <div v-for="item in lsdt" :key="item.id">
        <img :src="item.src" />
        <h3>
          <a class="content" href="">{{ item.title }}</a>
        </h3>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
     lsdt:''
    };
  },
  methods: {
    getData(){
        const url='http://127.0.0.1:3000/v2/qnls/lsdt'
        this.axios.get(url).then(res=>{
          console.log(res);
          this.lsdt=res.data.data
          console.log(this.lsdt);
        })
      }
  },
  mounted () {
    this.getData();
  },
};
</script>

<style lang="scss" scoped>
.box {
  display: flex;
  width: 810px;
  flex-wrap: wrap;
  justify-content: space-between;
  div {
    background-color: #fff;
    width: 255px;
    padding: 14px;
    font-size: 8px;
    box-sizing: border-box;
    margin: 0 0 10px 0;
    border-radius: 6px;
    img {
      width: 100%;
      display: block;
      height: auto;
      padding-bottom: 14px;
      &:hover {
        cursor: pointer;
      }
    }
    h3 {
      a {
        color: #333333;
        text-decoration: none;
      }
    }
  }
}
</style>